package com.tanhua.dubbo.api;

import com.tanhua.domain.mongo.Video;
import com.tanhua.domain.vo.PageResult;
import org.springframework.data.domain.PageRequest;

public interface VideoApi {
    void save(Video video);

    PageResult findVideoList(int page, int pagesize);

    void followUser(Long id, Long targetUserId);

    void unFollowUser(Long id, Long targetUserId);

    PageResult<Video> findVideoListByUid(Long uid, int page, int pagesize);

    Video findById(String videoId);
}
